﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/LoaiSP_NSX_Custome.master" AutoEventWireup="true" CodeFile="SP_Custome.aspx.cs" Inherits="admin_SP_Custome" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <p>
        <span class="AdminTitle" style="color:#cc0000;">Danh sách các sản phẩm hiện có</span>
    </p>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" 
                                DataKeyNames="id" Width="100%">
                                <Columns>
                                    <asp:TemplateField HeaderText="Hình ảnh">
                                         <ItemTemplate>
                                            <a href="LoadThongSo.aspx?loaisp=<%#Eval("idLoaiSP") %>&nsx=<%#Eval("idNSX") %>&id=<%#Eval("id") %>&width=450" class="jTip" id="<%#Eval("id") %>" name="<%# Eval("TenSanPham") %>" onclick="javascript:getresult('<%#Eval("TenLoaiSanPham") %>', '<%#Eval("TenSanPham") %>', <%#Eval("id") %>);" style="cursor:pointer;">
                                                <img src="../images/products/<%#Eval ("HinhMinhHoa")%>" width="75" height="75"/>   
                                            </a>
                                         </ItemTemplate>
                                         <HeaderStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Tên sản phẩm" SortExpression="TenSanPham">
                                        <ItemTemplate>
                                            <asp:Label ID="lblTenSanPham" runat="server" Text='<%# Bind("TenSanPham") %>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="left" Width="200px"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Giá" SortExpression="Gia">
                                         <ItemTemplate>
                                            <asp:Label ID="lblGia" runat="server"  Text='<%# String.Format("{0:#,##0;Nothing}", Eval("Gia")) %>'></asp:Label>
                                        </ItemTemplate>
                                         <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Center" Width="80px"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Bảo hành" SortExpression="BaoHanh">
                                        <ItemTemplate >
                                            <asp:Label ID="lblBaoHanh" runat="server" Text='<%# Bind("BaoHanh") %>'></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Center" Width="80px"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Số lượng tồn" SortExpression="SoLuongTon">
                                        <ItemTemplate >
                                            <asp:Label ID="lblSoLuongTon" runat="server" Text='<%# Bind("SoLuongTon") %>'></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Center" Width="100px"/>
                                    </asp:TemplateField>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <a href="javascript:getresult('<%#Eval("TenLoaiSanPham") %>', '<%#Eval("TenSanPham") %>', <%#Eval("id") %>);">
                                                Select
                                            </a>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
    </asp:GridView>
    <br />
    <br />
</asp:Content>

